import { http } from '@/plugins/axios'
import useUtils from '@/utils'
const { encodeSearchParams } = useUtils()
export default () => {
    const index = async (obj: Object = {}) => {
        let data = encodeSearchParams(obj)
        return await http.request<any>({
            url: `dashboard?${data}`,
            method: "GET",
        })
    }

    return {
        index,
    }
}
